import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
import { setupRouter } from '@/router'
import "virtual:uno.css"
import "@unocss-applet/reset/uni-app/tailwind.css"
import uView from 'vk-uview-ui'
import App from './App.vue'

export function createApp() {
  const pinia = createPinia()
  const app = createSSRApp(App)
  app.use(pinia)
  app.use(uView)
  setupRouter(app)
  
  return {
    app,
  };
}